﻿using Microsoft.AspNetCore.Mvc;

namespace Medlcalcare.MVC.Controllers
{
    /// <summary>
    /// 医院简介MVC控制器类。
    /// </summary>
    public class IntroductionHospitalController : Controller
    {
        public IConfiguration Configuration { get; }

        public IntroductionHospitalController(IConfiguration configuration)
        {
            Configuration = configuration;
        }
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 添加医院简介页面。
        /// </summary>
        /// <returns></returns>
        public IActionResult AddIntroductionHospital()
        {
            ViewBag.BaseUrl = Configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
